#include <iostream>
#include <string>
using namespace std;
int main() {
    string str;
    cin >> str;
    int score = 0;
    if (str.size() <= 4)
        score += 5;
    else if (str.size() > 4 && str.size() < 8)
        score += 10;
    else {
        score += 25;
    }
    int num_count = 0, Ch_flag = 0, ch_flag = 0, mark_count = 0;
    for (auto& e : str) {
        if (isdigit(e))
            num_count++;
        else if (isupper(e))
            Ch_flag = 1;
        else if (islower(e))
            ch_flag = 1;
        else mark_count++;
    }
    if (num_count > 0) {
        if (num_count > 1)
            score += 20;
        else score += 10;
    }
    if (mark_count > 0) {
        if (mark_count > 1)
            score += 25;
        else score += 10;
    }
    if (Ch_flag == 1 || ch_flag == 1) {
        if (Ch_flag == 1 && ch_flag == 1)score += 20;
        else score += 10;
    }
    if (num_count > 0 && Ch_flag == 1 && ch_flag == 1 && mark_count > 0) {
        score += 5;
    }
    else if (num_count > 0 && (Ch_flag == 1 || ch_flag == 1) && mark_count > 0) {
        score += 3;
    }
    else if (num_count > 0 && (Ch_flag == 1 || ch_flag == 1))
        score += 2;

    if (score >= 90) {
        cout << "VERY_SECURE" << endl;
    }
    else if (score >= 80) {
        cout << "SECURE" << endl;
    }
    else if (score >= 70) {
        cout << "VERY_STRONG" << endl;
    }
    else if (score >= 60) {
        cout << "STRONG" << endl;
    }
    else if (score >= 50) {
        cout << "AVERAGE" << endl;
    }
    else if (score >= 25) {
        cout << "WEAK" << endl;
    }
    else if (score >= 0) {
        cout << "VERY_WEAK" << endl;
    }
    return 0;
}
